package com.topvision.common.enumeration;

/**
 * @author shengwm
 * @version V0.0.1
 * @Title: MappingType
 * @Package com.topvision.common.enumeration
 * @Description: TODO
 * @date 2017/4/28
 */
public enum MappingType implements BaseEnum {

    ONETOONE("one-to-one", "一对一关系"),
    ONETOMANY("one-to-many", "一对多关系"),
    MANYTOONE("many-to-one", "多对一关系"),
    MANYTOMANY("many-to-many", "多对多关系");


    private final String value;
    private final String label;

    MappingType(String value, String label) {
        this.value = value;
        this.label = label;
    }

    /**
     * 获取值
     *
     * @return
     */
    @Override
    public String getValue() {
        return value;
    }

    /**
     * 获取标签
     *
     * @return
     */
    @Override
    public String getLabel() {
        return label;
    }

}
